using System;
using bitzhuwei.Compiler;

namespace bitzhuwei.JsonFormat {
    /// <summary>
    /// Correspond to the Vn node Member in the grammar(Json).
    /// </summary>
    public partial class JsonMember {
        // [10] Member = 'string' ':' Value ;


        public readonly string key;
        public readonly JsonValue value;

        public JsonMember(string key, JsonValue value) {
            this.key = key;
            this.value = value;
        }


        public override string ToString() {
            return $"{key}: {value}";
        }
    }
}
